#! /usr/bin/python3
# -*- coding: UTF-8 -*-

if __name__ == "__main__":
	raise Exception("不支持从这里调用")

__version__ = "1.0"
__all__ = ["MouseChshAppModel"]

from com.mousechsh.business.lib.model.MouseChshCommonModel import MouseChshCommonModel
from com.mousechsh.common.data.MouseChshField import MouseChshForeignStringField, MouseChshIntegerField, \
	MouseChshJsonBinField, MouseChshStringField


class MouseChshAppModel(MouseChshCommonModel):
	Name = MouseChshStringField('Name')
	Domain = MouseChshForeignStringField('Id', linked_table='Domain')
	Display = MouseChshJsonBinField('Display')
	Type = MouseChshForeignStringField('AppType')
	Protocol = MouseChshForeignStringField('Protocol')
	Host = MouseChshStringField('IpOrHost')
	Port = MouseChshIntegerField('Port')
	Path = MouseChshStringField('Path')
	Callback = MouseChshStringField('Callback')
	Key = MouseChshStringField('Key')
	Cert = MouseChshStringField('Cert')
	Permission = MouseChshIntegerField('Permission')
	Member = MouseChshForeignStringField('Id', linked_table='Member')

	class Meta:
		SchemaName = 'A_Application'
		TableName = 'T_App'
